<template>
  <div class="container">
    <router-view v-if="isReload" @reload="reload"></router-view>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isReload: true,
    };
  },
  methods: {
    reload() {
      this.isReload = false;

      this.$nextTick(() => {
        this.isReload = true;
      });
    },
  },
  provide() {
    return {
      reload: this.reload
    }
  },
};
</script>

<style lang="less" scoped>
@import url("./assets/css/base.css");
</style>